package com.xcroot.java01;

/**
 * Created by CRoot on 2017/9/20.
 */
public class CRectangle {
    private double length;
    private double width;

    /**
     * 设置宽度
     * @param width
     */
    public void setWidth(double width) {
        this.width = width;
    }

    /**
     * 设置长
     * @param length
     */
    public void setLength(double length) {
        this.length = length;
    }

    /**
     * 计算返回面积
     * @return
     */
    public double Area() {
        return this.length * this.width;
    }
}
